package com.geniusk.security.enums;

/**
 * 响应结果枚举，用于提供给JSONResult返回给前端的
 */
public enum LoginType {

    LOGIN_SUCCESS(1,"登录成功"),
    LOGIN_FAIL(0,"登录失败,用户名或密码错误");

    // 响应业务状态
    private final Integer code;
    // 响应消息
    private final String msg;

    LoginType(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer code() {
        return code;
    }
    public String msg() {
        return msg;
    }
}
